package cn.vihub.service;

import cn.vihub.pojo.ShopMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 64452
* @description 针对表【shop_menu】的数据库操作Service
* @createDate 2025-07-17 20:43:24
*/
public interface ShopMenuService extends IService<ShopMenu> {

    Object getTree();

    void isMenuByPid(Integer id);

    // 通过用户id查询用户所拥有的菜单
    Object treeByUserId(Integer userId);

    List<ShopMenu> listByRoleId(Integer roleId);
}
